﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WcfMail.Interface;

namespace WcfMail
{
    /// <summary>
    /// 反馈消息类
    /// </summary>
    public class FeedbackMessage
    {
        /// <summary>
        /// 反馈给谁，通常是原始消息的发送着
        /// </summary>
        public string Who;
        /// <summary>
        /// 反馈结果，成功还是失败
        /// </summary>
        public bool Result;
        /// <summary>
        /// 反馈的具体消息
        /// </summary>
        public SystemMessage  Message;

        public FeedbackMessage()
        { }

        public FeedbackMessage(string who, bool result, SystemMessage message)
        {
            this.Who = who;
            this.Result = result;
            this.Message = message;
        }
    }

    public class FeedbackMessageEventArgs : EventArgs
    {
        public FeedbackMessage Message { get; set; }
        public FeedbackMessageEventArgs() { }
        public FeedbackMessageEventArgs(FeedbackMessage message)
        {
            this.Message = message;
        }
    }

}
